//
//  UIViewController+AlrtMessage.h
//  CampusNetwork
//
//  Created by 2952883085 on 16/8/29.
//  Copyright © 2016年 foxconn. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIViewController (AlrtMessage)


@property(nonatomic,copy)NSString *alrtMessage;


/**
 弹框提示-确认-取消

 @param title 标题
 @param message 内容
 @param actionCancelTitle 取消按钮标题
 @param actionEnterTitle 确定按钮标题
 @param enterHandler 确认按钮点击事件
 */
-(void)alrtMessageTitle:(NSString *)title message:(NSString *)message actionCancelTitle:(NSString *)actionCancelTitle actionEnterTitle:(NSString *)actionEnterTitle  actionEnterHandler:(void(^)(UIAlertAction * action))enterHandler;


/**
 弹框提示-确认

 @param title 标题
 @param message 内容
 @param actionEnterTitle 确认按钮标题
 @param enterHandler 确认按钮点击事件
 */
-(void)alrtMessageTitle:(NSString *)title message:(NSString *)message  actionEnterTitle:(NSString *)actionEnterTitle enterHandler:(void(^)(UIAlertAction * action))enterHandler;


/**
 弹框提示-可以设置按钮颜色

 @param title 标题
 @param message 内容
 @param actionCancelTitle 取消按钮标题
 @param actionEnterTitle 确认按钮标题
 @param cancelColor 取消按钮文字颜色
 @param enterColor 确认按钮文字颜色
 @param enterHandler 确认按钮点击事件
 */
-(void)alrtMessageTitle:(NSString *)title message:(NSString *)message actionCancelTitle:(NSString *)actionCancelTitle actionEnterTitle:(NSString *)actionEnterTitle  actionCancelColor:(UIColor *)cancelColor actionEnterColor:(UIColor *)enterColor actionEnterHandler:(void(^)(UIAlertAction * action))enterHandler;



/**
 弹框提示-可以设置标题和内容字体尺寸和颜色

 @param title 标题
 @param message 内容
 @param actionCancelTitle 取消按钮标题
 @param actionEnterTitle 确认按钮标题
 @param titleAttribute 设置标题尺寸和颜色 @{NSFontAttributeName:[UIFont systemFontOfSize:16]}
 @param messageAttribute 设置内容尺寸和颜色 @{NSFontAttributeName:[UIFont systemFontOfSize:16]}
 @param enterHandler 确认按钮点击事件
 */
-(void)alrtMessageTitle:(NSString *)title message:(NSString *)message actionCancelTitle:(NSString *)actionCancelTitle actionEnterTitle:(NSString *)actionEnterTitle titleAttribute:(NSDictionary *)titleAttribute messageAttribute:(NSDictionary *)messageAttribute actionEnterHandler:(void(^)(UIAlertAction * action))enterHandler;
@end
